<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="新增加盟商">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module search">
                                <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/franchisee/allFranchisee.html'">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form name="form1" method="post" action="/admin/franchisee/modifyFranchisee.html"  enctype="multipart/form-data" >
                                <div class="valBox w750">
                                    <div class="top">
                                        <strong>修改加盟商</strong>
                                    </div>
                                    <div class="val clearfix">
                                        <ul>
                                            <#--<li>
                                            <div class="title">地区：</div>
                                            <div class="v">
                                                <#if franchisee??&&franchisee.province??>
                                                    <@region name="province" id="province" value="${(franchisee.province.id)?c}" pid="0"></@region>&nbsp;
                                                <#else>
                                                    <@region name="province" id="province"  pid="0"></@region>&nbsp;
                                                </#if>

                                                <#if franchisee??&&franchisee.province??>
                                                    <#if franchisee??&&franchisee.city??>
                                                        <@region name="city" id="city" value="${(franchisee.city.id)?c}" pid="${(franchisee.province.id)?c}"></@region>
                                                    <#else>
                                                        <@region name="city" id="city"  pid="${(franchisee.province.id)?c}"></@region>
                                                </#if>
                                                <#else>
                                                    <@region name="city" id="city"  pid="-1"></@region>
                                                </#if>
                                            </div>
                                            </li>-->
                                            <li>
                                                <div class="title">商铺名称：</div>
                                                <div class="v">
                                                    <input type="text" name="name"  size="50" value="<#if franchisee?? && franchisee.name??>${franchisee.name!''}</#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">商铺LOGO：</div>
                                                <div class="v">
                                                    <input type="file" name="logoPic"  size="50" value="<#if franchisee?? && franchisee.logo??>${franchisee.logo!''}</#if>"/>

                                                </div>
                                            </li>

                                            <li>
                                                <div class="title">运营公司：</div>
                                                <div class="v">
                                                    <input type="text" size="50" name="company" value="<#if franchisee?? && franchisee.company??>${franchisee.company!''}</#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">法人：</div>
                                                <div class="v">
                                                    <input type="text" size="50" name="legalPerson" value="<#if franchisee?? && franchisee.legalPerson??>${franchisee.legalPerson!''}</#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">地址：</div>
                                                <div class="v">
                                                    <input type="text" size="50" name="address" value="<#if franchisee?? && franchisee.address??>${franchisee.address!''}</#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">公司介绍：</div>
                                                <div class="v s_writeContent">
                                                    <textarea name="intro"><#if franchisee?? && franchisee.intro??>${franchisee.intro!''}</#if></textarea>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">联系方式：</div>
                                                <div class="v">
                                                    <input type="text" size="50" name="phone" value="<#if franchisee?? && franchisee.phone??>${franchisee.phone!''}</#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">固定电话：</div>
                                                <div class="v">
                                                    <input type="text" name="tel"  value="<#if franchisee?? && franchisee.tel??>${franchisee.tel!''}</#if>" size="50"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">加盟时间：</div>
                                                <div class="v">
                                                    <input  type="text" name="franchiseeTime" onclick="change_picktime()" value="<#if franchisee?? && franchisee.franchiseeTime??>${franchisee.franchiseeTime!''}</#if>"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">主营产品：</div>
                                                <div class="v">
                                                    <#if franchisee?? && franchisee.borrowProduct??>
                                                        <#assign borrowProduct=franchisee.borrowProduct>
                                                            <#else>
                                                                <#assign borrowProduct="">
                                                    </#if>
                                                    <input id="lqt" type="checkbox" name="borrowProduct" value="102,103" <#if borrowProduct?contains("102,103")>checked</#if> >
                                                    <label for="lqt">零钱通</label>
                                                    <input id="qbb" type="checkbox" name="borrowProduct" value="110" <#if borrowProduct?contains("110")>checked</#if> >
                                                    <label for="qbb">钱保宝</label>
                                                    <input id="hls" type="checkbox" name="borrowProduct" value="101" <#if borrowProduct?contains("101")>checked</#if> >
                                                    <label for="hls">欢乐送</label>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">主营借款用途：</div>
                                                <div class="v">
                                                    <#if franchisee?? && franchisee.borrowUsageType??>
                                                        <#assign borrowUsageType=franchisee.borrowUsageType>
                                                            <#else>
                                                                <#assign borrowUsageType="">
                                                    </#if>
                                                    <#if borrowUsageList??>
                                                        <#list borrowUsageList as item>
                                                            <input id="type_${item.id?c}" type="checkbox" name="borrowUsageType" value="${item.id?c}" <#if borrowUsageType?contains("${item.id?c}")>checked</#if> >
                                                            <label for="type_${item.id?c}">${item.name}</label>
                                                        </#list>
                                                    </#if>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">首页模板：</div>
                                                <div class="v">
                                                    <input type="text" name="indexTemplate" value="<#if franchisee?? && franchisee.indexTemplate??>${franchisee.indexTemplate!''}</#if>" size="50"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">样式：</div>
                                                <div class="v">
                                                    <input type="text" name="pageCss" value="<#if franchisee?? && franchisee.pageCss??>${franchisee.pageCss!''}</#if>" size="50"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">企业QQ：</div>
                                                <div class="v">
                                                    <input type="text" name="companyQQ" value="<#if franchisee?? && franchisee.companyQQ??>${franchisee.companyQQ!''}</#if>" size="50"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">活动简介：</div>
                                                <div class="v">
                                                    <input type="text" name="activity" value="<#if franchisee?? && franchisee.activity??>${franchisee.activity!''}</#if>" size="50"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">启用：</div>
                                                <div class="v">
                                                    <#if franchisee?? && franchisee.status?? && franchisee.status==1>
                                                        <input type="radio" name="status" value="1" checked="checked"/>是
                                                        <input type="radio" name="status" value="0" />否
                                                        <#else>
                                                            <input type="radio" name="status" value="1" />是
                                                            <input type="radio" name="status" value="0" checked="checked"/>否
                                                    </#if>

                                                </div>
                                            </li>
                                        </ul>
                                        <div class="other">
                                            <input type="hidden"  name="actionType" value="mod" />
                                            <input type="hidden"  name="id" value="<#if franchisee?? && franchisee.id??>${franchisee.id!''}</#if>" />
                                            <input type="hidden" name="logo" value="<#if franchisee?? && franchisee.logo??>${franchisee.logo!''}</#if>"/>
                                            <input type="submit"  name="modBtn" value="修改" class="input-button confirm"/>
                                        </div>
                                    </div>
                                </div>

                            </form>

                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    <div class="msgClass">${rsmsg!""}</div>
    </body>
</html>
